/**
 * 
 */
package com.inkcar.generator.model;

import java.util.Set;

/**
 * 表实体对象
 * 
 * @author 欧阳增高
 * 
 */
public class Table {
	/**
	 * 数据库表名
	 */
	private String tableName;
	/**
	 * 生成后的模型名
	 */
	private String entityName;

	/**
	 * 表说明
	 */
	private String comment;

	/**
	 * 数据表所属包
	 */
	private String packageName;

	/**
	 * 主键字段名
	 */
	private TableProperty primaryProperty;

	/**
	 * 表字段
	 */
	private Set<TableProperty> propertys;

	/**
	 * 自定义序号字段，不包含主键主字
	 */
	private Set<TableProperty> sequences;

	/**
	 * 是否为树形结构,如为树开结构，将生成树形查询及父层次结构数据
	 */
	private TreeModel tree;
	
	/**
	 * 默认查询排序语句
	 */
	private String selectSort;

	/**
	 * @return the tableName
	 */
	public String getTableName() {
		return tableName;
	}

	/**
	 * @param tableName
	 *            the tableName to set
	 */
	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	/**
	 * @return the entityName
	 */
	public String getEntityName() {
		return entityName;
	}

	/**
	 * @param entityName
	 *            the entityName to set
	 */
	public void setEntityName(String entityName) {
		this.entityName = entityName;
	}

	/**
	 * @return the comment
	 */
	public String getComment() {
		return comment;
	}

	/**
	 * @param comment
	 *            the comment to set
	 */
	public void setComment(String comment) {
		this.comment = comment;
	}

	/**
	 * @return the packageName
	 */
	public String getPackageName() {
		return packageName;
	}

	/**
	 * @param packageName
	 *            the packageName to set
	 */
	public void setPackageName(String packageName) {
		this.packageName = packageName;
	}

	/**
	 * @return the primaryProperty
	 */
	public TableProperty getPrimaryProperty() {
		return primaryProperty;
	}

	/**
	 * @param primaryProperty
	 *            the primaryProperty to set
	 */
	public void setPrimaryProperty(TableProperty primaryProperty) {
		this.primaryProperty = primaryProperty;
	}

	/**
	 * @return the propertys
	 */
	public Set<TableProperty> getPropertys() {
		return propertys;
	}

	/**
	 * @param propertys
	 *            the propertys to set
	 */
	public void setPropertys(Set<TableProperty> propertys) {
		this.propertys = propertys;
	}

	/**
	 * @return the sequences
	 */
	public Set<TableProperty> getSequences() {
		return sequences;
	}

	/**
	 * @param sequences
	 *            the sequences to set
	 */
	public void setSequences(Set<TableProperty> sequences) {
		this.sequences = sequences;
	}

	/**
	 * @return the tree
	 */
	public TreeModel getTree() {
		return tree;
	}

	/**
	 * @param tree
	 *            the tree to set
	 */
	public void setTree(TreeModel tree) {
		this.tree = tree;
	}

	/**
	 * @return the selectSort
	 */
	public String getSelectSort() {
		return selectSort;
	}

	/**
	 * @param selectSort the selectSort to set
	 */
	public void setSelectSort(String selectSort) {
		this.selectSort = selectSort;
	}

}
